/**
 * 
 * DIRECTV PROPRIETARY
 * Copyright© 2014 DIRECTV, INC.
 * UNPUBLISHED WORK
 * ALL RIGHTS RESERVED
 * 
 * This software is the confidential and proprietary information of
 * DIRECTV, Inc. ("Proprietary Information").  Any use, reproduction, 
 * distribution or disclosure of the software or Proprietary Information, 
 * in whole or in part, must comply with the terms of the license 
 * agreement, nondisclosure agreement or contract entered into with 
 * DIRECTV providing access to this software.
 */
package com.direct.ratelimit.usage;

import com.direct.ratelimit.RateLimitRequest;
import com.direct.ratelimit.limit.TimeFrame;

public interface ResourceUsageService {
	
	/**
	 * get the number of times this client has used this resource within the last TimeFrame
	 * 
	 * @param rateLimitRequest
	 * @param timeFrame
	 * @return the number of calls
	 */
	long getResourceUsage(RateLimitRequest rateLimitRequest,TimeFrame timeFrame);

}
